<?php


abstract class Globals {
    const SF_ENVIRONMENT_PROD = 'prod';
    const SF_ENVIRONMENT_DEV = 'dev';
    const SF_ENVIRONMENT_TEST = 'test';

	const STATUS_ACTIVE = 'active';
	const STATUS_INACTIVE = 'inactive';
	const STATUS_PENDING = 'pending';
	const STATUS_CANCEL = 'cancel';
	const STATUS_REJECT = 'reject';
	const STATUS_APPROVE = 'approve';
	const STATUS_COMPLETE = 'complete';

	const USERTYPE_DISTRIBUTOR = 'distributor';
	const USERTYPE_ADMIN = 'admin';
	const USERTYPE_SUPERADMIN = 'superadmin';

	const SESSION_DISTID = '_DISTID';
	const SESSION_ADMINID = '_ADMINID';
	const SESSION_USERNAME = '_USERNAME';
	const SESSION_USERID = '_USERID';
	const SESSION_USERTYPE = '_USERTYPE';
    const SESSION_CPS_PRICE = 'cps_price';
    const SESSION_GOLD_PRICE = 'gold_price';
    const SESSION_MENU_IDX = '_MENU_IDX';
    const SESSION_ADMIN_MENU_IDX = '_ADMIN_MENU_IDX';
    const SESSION_NICKNAME = '_NICKNAME';

    const SYSTEM_USER = '0';
    const SYSTEM_CAPTCHA_ID = 'captcha_id';

    const PIN_ACTION_REGISTER = 'register';
    const PIN_ACTION_TRANSFER = 'transfer';
    const PIN_ACTION_REINVEST = 'reinvest';

    const SETTING_DAILY_BONUS = 'daily bonus';
    const SETTING_MONTHLY_BONUS = 'monthly bonus';
    const SETTING_GOLD_PRICE = 'gold price';
    const SETTING_CPS = 'cps';
    const SETTING_TRADING_POWER = 'trading power';
    const SETTING_SERVER_MAINTAIN = 'server maintain';
    const SETTING_GOLD_MARKET = 'gold market';

    const ACCOUNT_TYPE_GOLD_DIVIDEND = 'gold dividend';
    const ACCOUNT_TYPE_TRADING_POINT = 'trading point';
    const ACCOUNT_TYPE_ECASH = 'ecash';
    const ACCOUNT_TYPE_CPS = 'cps';
    const ACCOUNT_TYPE_GOLD = 'gold';
    const ACCOUNT_TYPE_GAP = 'gap';

    const ACCOUNT_LEDGER_ACTION_REGISTER = 'register';
    const ACCOUNT_LEDGER_ACTION_PURCHASE = 'purchase';
    const ACCOUNT_LEDGER_ACTION_SELL = 'sell';
    const ACCOUNT_LEDGER_ACTION_SELL_GOLD = 'sell gold';
    const ACCOUNT_LEDGER_ACTION_TRANSFER = 'transfer';
    const ACCOUNT_LEDGER_ACTION_TRANSFER_TO = 'transfer to';
    const ACCOUNT_LEDGER_ACTION_TRANSFER_FROM = 'transfer from';
    const ACCOUNT_LEDGER_ACTION_REINVEST_CPS = 'reinvest';
    const ACCOUNT_LEDGER_ACTION_REDEEM = 'redeem';
    const ACCOUNT_LEDGER_ACTION_WITHDRAWAL = 'withdrawal';
    const ACCOUNT_LEDGER_ACTION_DAILY_BONUS = 'daily bonus';
    const ACCOUNT_LEDGER_ACTION_MONTHLY_BONUS = 'monthly bonus';
    const ACCOUNT_LEDGER_ACTION_ADJUSTMENT = 'adjustment';
    const ACCOUNT_LEDGER_ACTION_DEPOSIT = 'deposit';

    const PATH_VERIFICATION = 'verification';

    const REINVEST_CPS_DAYS = 21;
    const REINVEST_GAP_MULTIPLY = 3;
    const REFRESH_GOLD_INTEVAL = 20000;  // 10 sec
    const GRAM_TO_TROY_OUNCES = 0.0321507466; //1 gram = 0.0321507466 troy ounces
    const PACKAGE_PINS = "5,10,20,30,50,100";

    const EMAIL_HOST = "maplegrowig.com";
    const EMAIL_FROM_NOREPLY = "noreply@maplegrowig.com";
    const EMAIL_FROM_NOREPLY_NAME = "maplegrowig.com";
}